package about_attributes.demo3;

/**
 * @author yuisama
 * @date 2022/10/01 15:08
 **/
public class Main {
    public static void main(String[] args) {
        Thread main = Thread.currentThread();
        System.out.println(main.getPriority());
        main.setPriority(Thread.MAX_PRIORITY);//设置优先级
        System.out.println(main.getPriority());
        main.setPriority(Thread.NORM_PRIORITY);
        System.out.println(main.getPriority());
        main.setPriority(Thread.MIN_PRIORITY);
        System.out.println(main.getPriority());
    }
}

